import request from "@/utils/request";

export function giveTasks(tasks){
    return request({
      url: "/manager/giveTasks",
      method:"post",
      params:{tasks}
    });
}

export function getTaskList(limit,currentPage){
    return request({
      url: "/performance/getTaskList",
      method:"get",
      params:{limit,currentPage}
    });
}

export function TaskCompletion(taskId,taskCompletion){
  return request({
    url: "/performance/completion",
    method:"post",
    params:{taskId,taskCompletion}
  });
}

export function getPerformanceChart(employeeId){
  return request({
    url: "/performance/chartView",
    method:"get",
    params:{employeeId}
  });
}